package com.github.elliot.mallcenter.controller;

import com.github.elliot.mallcenter.entity.ItemMall;
import com.github.elliot.mallcenter.service.ItemMallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping
@RestController
public class ItemMallController {

    @Autowired
    private ItemMallService itemMallService;

    @GetMapping("/api/v1/itemMall/{itemMallNo}")
    public ItemMall getByItemMallNo(@PathVariable String itemMallNo){
        return itemMallService.getByItemMallNo(itemMallNo);
    }
}
